package com.assignwork.vo;

import com.assignwork.util.BigDecimalSerializer;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springblade.core.tool.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;

@Data
public class WorkArrangeLandMobileVO {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    private String workNo;
    private String areaIds;
    private String areaNames;
    private String loadType;
    private String loadTypeName;
    private String packageBulk;
    private String packageBulkName;
    private String landWorkType;
    private String landWorkTypeName;
    @JsonFormat(pattern = DateUtil.PATTERN_DATE)
    @DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
    private LocalDate planDate;
    private String remark;
    private String timeSpace;
    private String timeSpaceName;
    @JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
    private BigDecimal workTon;
    private String cargoType;
    private String shipName;
    @ApiModelProperty(value = "工人信息")
    private String workerInfo;
    @ApiModelProperty(value = "固机信息")
    private String fixedMachineInfo;
    @ApiModelProperty(value = "吊车信息")
    private String craneInfo;
    @ApiModelProperty(value = "叉车信息")
    private String forkliftInfo;
    @ApiModelProperty(value = "牵引车信息")
    private String tractorInfo;
    @ApiModelProperty(value = "装载机信息")
    private String loaderInfo;
    @ApiModelProperty(value = "挖掘机信息")
    private String excavatorInfo;
    @ApiModelProperty(value = "计划吨")
    @JsonSerialize(using = BigDecimalSerializer.class, nullsUsing = NullSerializer.class)
    private BigDecimal planTon;
    private Integer isAudit;

}
